<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<input type="checkbox" value="兴趣爱好1" />兴趣爱好1
		<input type="checkbox" value="兴趣爱好2" />兴趣爱好2
		<input type="checkbox" value="兴趣爱好3" />兴趣爱好3
		<input type="checkbox" value="兴趣爱好4" />兴趣爱好4
		<input type="checkbox" value="兴趣爱好5" />兴趣爱好5
		<input type="checkbox" value="兴趣爱好6" />兴趣爱好6
		<input type="button" value="确定" id="btn"/>
		<script type="text/javascript">
			$("#btn").click(function(){
				var k=$(":checkbox:checked");
				alert(k.length);
				k.each(function(i,ele){
				alert($(ele).val())	
				});
			});
		</script>
	</body>
</html>
